package CAODemo;

public class TestComputer {
    private String cpu ;
    private String mainBoard;
    private String memory;
    public String screen ;
    String brand;

    public TestComputer(String cpu, String mainBoard, String memory, String screen, String brand) {
        this.cpu = cpu;
        this.mainBoard = mainBoard;
        this.memory = memory;
        this.screen = screen;
        this.brand = brand;
    }
}

class setComputer {
    public static void main(String[] args) {
        TestComputer Ace = new TestComputer("i9","B888","16g","200hz","Power");
        System.out.println(Ace.brand);
        System.out.println(Ace.screen);
        //Ace.cpu Ace.mainBoard Ace.memory 无法访问展示
    }
}
